package com.example;

import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@Slf4j
@MapperScan("com.example.mapper")
@SpringBootApplication
public class RemoteconfigtestApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(RemoteconfigtestApplication.class, args);

        log.warn("项目启动后请访问：http://localhost:9080/dev");
    }
    @Override
    public void run(String... args) throws Exception {
        // TODO Auto-generated method stub
        new Thread(()->{
            try {
                new NettyServer(8080).run();
            } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
        }).start();
    }
}
